package two_xia.myPainter.shape;

import java.awt.*;

public class ShapeEraser extends Shape {

    public ShapeEraser(int x1, int y1, int x2, int y2, Color color, BasicStroke s) {
        super(x1, y1, x2, y2, color, s);

    }

    public void draw(Graphics2D g) {
        g.setStroke(getStroke());// 设置画笔的粗细
        g.setColor(getColor());// 设置画笔的颜色
        g.drawLine(getX1(), getY1(), getX2(), getY2());

    }

}